/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package logica;

import modelos.DisciplinaDAO;
import transferencia.DisciplinaTO;

/**
 *
 * @author lljotall
 */
public class DisciplinaBO {
    public static DisciplinaTO getDisciplinaSigla(String sigla) throws DisciplinaInvalidaException{
        return DisciplinaDAO.getDisciplinaSigla(sigla);
    }
    
    public static DisciplinaTO getDisciplinaNome(String nome){
        return DisciplinaDAO.getDisciplinaNome(nome);
    }

    public static boolean verificaDisciplina(String sigla) {
        DisciplinaTO d = getDisciplinaSigla(sigla);
        return !(d==null);
    }
}
